package com.sywl.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.sywl.util.DataGridModel;

public interface BaseDao<T> {
	
	public void save(T entity);  
	  
    public void update(T entity);  
  
    public void delete(Serializable id);  
  
    public T findById(Serializable id);  
    
    public List<T> getAll();
  
    public List<T> findByHQL(String hql, Object... params);  
    
    public Map<String,Object> getPageList(DataGridModel dgm,T entity) throws Exception;
	
}
